using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmTmpEmployee")]
    public class TmpEmployee
    {
        public TmpEmployee()
        {
            this.hrm_tmp_employee_educations = new HashSet<TmpEmployeeEducation>();
        }
    

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "TmpEmpId", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public int TmpEmpId { get; set; }

		[ForeignKey("NamePrefix")]
		[DataMember, Display(Name = "NamePrefixId", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public Nullable<int> NamePrefixId { get; set; }

		[DataMember, Display(Name = "FirstName", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public string FirstName { get; set; }

		[DataMember, Display(Name = "LastName", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public string LastName { get; set; }

		[DataMember, Display(Name = "FirstNameEng", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public string FirstNameEng { get; set; }

		[DataMember, Display(Name = "LastNameEng", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public string LastNameEng { get; set; }

		[DataMember, Display(Name = "NickName", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public string NickName { get; set; }

		[ForeignKey("Gender")]
		[DataMember, Display(Name = "GenderId", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public Nullable<int> GenderId { get; set; }

		[ForeignKey("Religion")]
		[DataMember, Display(Name = "ReligionId", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public Nullable<int> ReligionId { get; set; }

		[ForeignKey("RaceNat")]
		[DataMember, Display(Name = "RaceNatId", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public Nullable<int> RaceNatId { get; set; }

		[ForeignKey("Nat")]
		[DataMember, Display(Name = "NatId", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public Nullable<int> NatId { get; set; }

		[DataMember, Display(Name = "BirthDate", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public Nullable<System.DateTime> BirthDate { get; set; }

		[ForeignKey("EmpStatus")]
		[DataMember, Display(Name = "EmpStatusId", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public Nullable<int> EmpStatusId { get; set; }

		[DataMember, Display(Name = "Citizen", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public string Citizen { get; set; }

		[DataMember, Display(Name = "TaxPayer", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public string TaxPayer { get; set; }

		[DataMember, Display(Name = "Social", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public string Social { get; set; }

		[DataMember, Display(Name = "Official", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public string Official { get; set; }

		[ForeignKey("BloodGroup")]
		[DataMember, Display(Name = "BloodGroupId", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public Nullable<int> BloodGroupId { get; set; }

		[ForeignKey("MarrStat")]
		[DataMember, Display(Name = "MarrStatId", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public Nullable<int> MarrStatId { get; set; }

		[ForeignKey("EntType")]
		[DataMember, Display(Name = "EntTypeId", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public Nullable<int> EntTypeId { get; set; }

		[ForeignKey("EmpType")]
		[DataMember, Display(Name = "EmpTypeId", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public Nullable<int> EmpTypeId { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.TmpEmployeesResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }
    

		[DataMember]
        public virtual ICollection<TmpEmployeeEducation> hrm_tmp_employee_educations { get; set; }

		public virtual MasNationality NamePrefix { get; set; }

		public virtual MasGender Gender { get; set; }

		public virtual MasReligion Religion { get; set; }

		public virtual MasNationality RaceNat { get; set; }

		public virtual MasNationality Nat { get; set; }

        public virtual HRM.PsEmployeeStatus EmpStatus { get; set; }

		public virtual MasBloodGroup BloodGroup { get; set; }

		public virtual MasMaritalStatus MarrStat { get; set; }

		public virtual HRM.RcEntryType EntType { get; set; }

		public virtual MasEmployeeType EmpType { get; set; }

    }
}